import request from "@/utils/request";
/**
 * 根据id获取场馆信息
 * @returns {*}
 */

// 详情列表
export function trainSetList(params) {
  return request({
    url: "/systemj/project/projectList",
    method: "get",
    params,
  });
}

// 新建科目
export function trainSetAdd(data) {
  return request({
    url: "/systemj/project/addTrainProject",
    method: "post",
    data,
  });
}

// 修改培训项目
export function trainSetUpdate(data) {
  return request({
    url: "/systemj/project/updateTrainProject",
    method: "put",
    data,
  });
}

// 上移下移培训项目
export function trainSetMove(data) {
  return request({
    url: "/systemj/project/updateTrainProject",
    method: "put",
    data,
  });
}

// 删除培训项目
export function trainSetDel(data) {
  return request({
    url: "/systemj/project/delete",
    method: "post",
    data,
  });
}

// 获取导入科目
export function trainSetImportList(params) {
  return request({
    url: "/systemj/project/importTemplate",
    method: "get",
    params,
  });
}

// 导入科目
export function trainSetImport(data) {
  return request({
    url: "/systemj/project/importProjects",
    method: "post",
    data,
  });
}
